import axios from "./axios"

// 定义便捷请求
export const getMenu = (param) => axios.request({
    url: 'permission/getMenu',
    method: 'post',
    data: param
})

export const getData = () => axios.request({
    url: "/home/getData"
})

export const getUser = (params) => {
    return axios.request({
        url: '/user/getList',
        method: 'get',
        params /*属性名和值相同，简写*/
    })
}

export const delUser = (params) => {
    return axios.request({
        url: '/user/del',
        method: 'get',
        params
    })
}
